package cn.edu.zust.se.shop.service;

import cn.edu.zust.se.shop.dto.ProductDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-product")
public interface ProductService {
    @GetMapping("/products/{id}")
    public ProductDto getProductById(@PathVariable("id") int pid);
}
